#include "sdresuse.h"
#include "sdresuseplugin.h"

#include <QtPlugin>

SDResusePlugin::SDResusePlugin(QObject *parent)
    : QObject(parent)
{
    m_initialized = false;
}

void SDResusePlugin::initialize(QDesignerFormEditorInterface * /* core */)
{
    if (m_initialized)
        return;

    // Add extension registrations, etc. here

    m_initialized = true;
}

bool SDResusePlugin::isInitialized() const
{
    return m_initialized;
}

QWidget *SDResusePlugin::createWidget(QWidget *parent)
{
    return new SDResuse(parent);
}

QString SDResusePlugin::name() const
{
    return QLatin1String("SDResuse");
}

QString SDResusePlugin::group() const
{
    return QLatin1String("SL");
}

QIcon SDResusePlugin::icon() const
{
    return QIcon(QLatin1String(":/19-MetroUI-Winamp.png"));
}

QString SDResusePlugin::toolTip() const
{
    return QLatin1String("show Tips");
}

QString SDResusePlugin::whatsThis() const
{
    return QLatin1String("show resouces used");
}

bool SDResusePlugin::isContainer() const
{
    return false;
}

QString SDResusePlugin::domXml() const
{
    return QLatin1String("<widget class=\"SDResuse\" name=\"sDResuse\">\n</widget>\n");
}

QString SDResusePlugin::includeFile() const
{
    return QLatin1String("sdresuse.h");
}
#if QT_VERSION < 0x050000
Q_EXPORT_PLUGIN2(sdresuseplugin, SDResusePlugin)
#endif // QT_VERSION < 0x050000
